package org.laobai.order.clien;

import org.laobai.common.struct.Result;
import org.laobai.order.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "order-service",path = "order")
public interface OrderClient {

    @PostMapping
    Result add(@RequestBody Order order);
}

